-- Copyright (c) 2025 Huawei Technologies Co., Ltd.
-- openUBMC is licensed under Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
-- EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
-- MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
-- See the Mulan PSL v2 for more details.

local class = require 'mc.class'

local measurement = class()

function measurement:ctor(chassis_id, mdb_name, meas)
    self.m_chassis_id = chassis_id
    self.m_mdb_name = mdb_name
    self.m_index = meas.index
    self.m_hash_algo = meas.hashAlgorithm
    self.m_type = meas.measurementType
    self.m_measurement = meas.measurement
    self.m_last_updated = meas.lastUpdated
    self.m_part_of_summary_hash = meas.partOfSummaryHash
    self.m_security_version_number = meas.securityVersionNumber
end

function measurement:init()

end

return measurement